package com.zjitc.chapter13.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
    @RequestMapping("/hello")
    public String hello() {
        System.out.println("HelloController.hello");
        return "success.jsp";
    }
    @RequestMapping("/exp")
    public String exp() {
        System.out.println("HelloController.exp");
        int i = 1 / 0;
        return "success.jsp";
    }
}
